<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style type="text/css">
        #div1{
            position: absolute;
            border:1px solid red;
            width: 200px;
            background-color: red;
            height: 200px;

        }
        #div2{

            border:1px solid yellow;
            width: 200px;
            height: 200px;
            background-color: yellow;
margin-left:200px;
            margin-top:100px;
        }
        #div3{
            position: relative;
            border:1px solid yellow;
            width: 20px;
            height: 20px;
            background-color: green;
            top:20px;
            left:20px;
        }



    </style>
</head>
<body>
<div id="div1">div1

</div>
<div id="div2">div2</div>


</body>
</html>